package ro.isdc.vms.vehicleinstance.domain;

import ro.isdc.vms.misc.domain.Entity;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

/**
 * A vehicle type.
 * 
 * @author Andrei Chirila
 */
public class VehicleType extends Entity {

	/**
	 * Generated Serial Version UID
	 */
	private static final long serialVersionUID = 4128020953289320538L;
	
	/**
	 * The associated vehicle type.
	 */
	private String vehicleTypeName;
	
	/**
	 * The associated vehicle model.
	 */
	private VehicleModel vehicleModel;
	
	/**
	 * @return the vehicleTypeName
	 */
	public String getVehicleTypeName() {
		return vehicleTypeName;
	}

	/**
	 * @param vehicleTypeName the vehicleTypeName to set
	 */
	public void setVehicleTypeName(final String vehicleTypeName) {
		this.vehicleTypeName = vehicleTypeName;
	}

	/**
	 * @return the vehicleModel
	 */
	public VehicleModel getVehicleModel() {
		return vehicleModel;
	}

	/**
	 * @param vehicleModel the vehicleModel to set
	 */
	public void setVehicleModel(VehicleModel vehicleModel) {
		this.vehicleModel = vehicleModel;
	}

	/**
	 * @see java.lang.Object#toString()
	 */
	public String toString() {
		return new ToStringBuilder(this, ToStringStyle.DEFAULT_STYLE).append(
				"oldFlaggedTimestamp", this.getOldFlaggedTimestamp()).append(
				"lastUpdatedBy", this.getLastUpdatedBy()).append("createdBy",
				this.getCreatedBy()).append("deletionTimestamp",
				this.getDeletionTimestamp()).append("versionNo",
				this.getVersionNo()).append("creationTimestamp",
				this.getCreationTimestamp()).append("vehicleModel",
				this.vehicleModel).append("lastUpdateTimestamp",
				this.getLastUpdateTimestamp()).append("vehicleTypeName",
				this.vehicleTypeName).append("entityId", this.getEntityId())
				.toString();
	}

	
}
